package com.sl.au.service;

import java.util.List;

import com.sl.au.entity.AfterSaleTicket;
import com.sl.au.entity.AfterSaleTicketPay;
import com.sl.au.repository.AfterSaleTicketPayRepository;
import com.sl.au.repository.AfterSaleTicketRepository;

public interface AfterSaleInHouseService extends BaseService {

	AfterSaleTicketPayRepository getTicketPayRepository();

	/**
	 * 获取售后内勤的数据
	 * 
	 * @param key
	 *            查询条件
	 * @return
	 */
	List<AfterSaleTicket> getInHouseTicket(int start, int length, String key,String isSubmit);

	/**
	 * 三包赔偿零件数据
	 * 
	 * @param key
	 *            查询条件
	 * @return
	 */
	List<AfterSaleTicketPay> getPayDevice(int start, int length, String ticketId, String orderName, String dir);

	AfterSaleTicketRepository getAfterSaleTicketRepository();
	
	/**
	 * 售后评价单生成,添加合同类容
	 */
	List<AfterSaleTicket> getAfterSaleAccess(List<AfterSaleTicket> ticket);
	
	/*
	 * 申请人的服务单
	 */
	List<AfterSaleTicket> getMyAfterSaleAccess(int start, int length,String key,String userId, String isSubmit);
	
	long getMyAfterSaleAccessCount(String key,String userId, String isSubmit);
}
